/**
 * “用户管理”相关接口
 */
import request from '@/utils/request'

export default {
    //部门树查询
    queryDept(data) {
        return request({
          url: '/privsysDept/getDeptbyParentId',
          method: 'post',
          data
        })
    },
  addDept(data) {
    return request({
      url: '/privsysDept/addDept',
      method: 'post',
      data
    })
  },
  updateDept(data) {
    return request({
      url: '/privsysDept/updateDept',
      method: 'post',
      data
    })
  },
  deleteDept(data) {
    return request({
      url: '/privsysDept/deleteDept',
      method: 'post',
      data
    })
  },
}

